package io.gitee.yxsnake.embark.web.core.converter;

import java.io.Serializable;

/**
 * @author snake
 * @description 简单对象转换
 * @since 2024/9/29 0:55
 */
public interface SimpleObjectConvert extends Serializable {
    /**
     * 获取自动转换后的JavaBean对象
     */
    default <T> T convert(Class<T> clazz) {
        return JsonUtilsConvert.convert(clazz, this);
    }
}
